// const { defineConfig } = require("@vue/cli-service");
const AutoImport = require('unplugin-auto-import/webpack')
const Components = require('unplugin-vue-components/webpack')
const { ElementPlusResolver } = require('unplugin-vue-components/resolvers')
const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  lintOnSave: false,//取消语法检测机制
  // transpileDependencies: true,
  configureWebpack: {
    plugins: [
      AutoImport({
        resolvers: [ElementPlusResolver()],
      }),
      Components({
        resolvers: [ElementPlusResolver()],

      }),
    ],
  },
  devServer: {
  //   // host: "localhost",
  // 	// port: 8081, // 端口号
  // 	https: false, // https:{type:Boolean}
  // 	open: false, //配置自动启动浏览器
  	// proxy: {
		// // http://admin.sixblog.com/admin/manager/1
  	// 	'/admin': { //代理api
  	// 		target: 'http://mall.yydsn.cn/admin',//服务器api地址
  	// 		// target: 'http://192.168.1.188:8080/info',//服务器api地址
  	// 		ws: true,// proxy websockets
  	// 		changeOrigin: true,//是否跨域
  	// 		pathRewrite: { //重写路径
  	// 			'^/admin': ''
  	// 		}
  	// 	}
  	// }
  },
  productionSourceMap:false
})



